package cn.tedu.charging.order.dao.repository;

import cn.tedu.charging.order.pojo.po.ChargingOrderFailPO;
import cn.tedu.charging.order.pojo.po.ChargingOrderSuccessPO;

public interface OrderRepository {

    ChargingOrderSuccessPO getSuccessOrderByOrderNo(String orderNo);

    ChargingOrderFailPO getFailOrderByOrderNo(String orderNo);

    Integer insertFailOrder(ChargingOrderFailPO chargingOrderFailPO);

    Integer insertSuccessOrder(ChargingOrderSuccessPO chargingOrderSuccessPO);

    Integer updateOrderStatusFromChargingToAbnormalEnd(String orderNo);
}
